import service from '../server'

// 实例列表
export const getInstanceList = (data) => {
    return service.get('/api/v1/instance/list', data)
}

// 实例操作
export const handleInstance = (data) => {
    return service.post('/api/v1/instance/handle',data)
}

// 实例创建
export const createInstance = (data) => {
    return service.post('/api/v1/instance/create', data)
}

// 实例操作记录
export const getActionlist = (data) => {
    return service.get('/api/v1/instance/actionlist', data)
}

// 实例操作状态列表
export const getStatuslistApi = (data) => {
    return service.post('/api/v1/instance/statuslist', data)
}

// 修改实例名称
export const updateInstance = (data) => {
    return service.post('/api/v1/instance/update', data)
}

// 获取实例日志token
export const getInstanceLogApi = (data) => {
    return service.get('/api/v1/instance/log/token',data)
}

// 实例日志
export const getInstanceLogsApi = (data) => {
    return service.get('/api/v1/instance/logs',data)
}

// 创建实例检查
export const instanceCheckApi = (data) => {
    return service.post('/api/v1/instance/create/check',data)
}
